package com.mininglamp.app.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.mininglamp.app.response.Response;
import com.mininglamp.app.util.ResponseHelper;

@RestController
@RequestMapping("/api")
public class ApiController {

	@RequestMapping(value="/version", method=RequestMethod.GET)
    public Response getApiVersion() {
        return ResponseHelper.OK("V1.0");
    }
	
	@RequestMapping(value ="/testParam", method={RequestMethod.GET})
	public Response testParameter(@RequestParam(name = "params", required=false) String param) {
		return ResponseHelper.OK();
	}

}
